<template>
    <div class="dataAnalyse">
        <iframe
        :src="iframeUrl"
        width="100%"
        :height="pageHeight"
        frameborder="0"
        allowfullscreen
        ></iframe>
    </div>
</template>
<script>
export default {
    name: 'dataAnalyse',
    data () {
        return {
            iframeUrl: '',
            pageHeight: null,
        }
    },
    created () {
        const that = this;
        that.iframeUrl = process.env.NODE_ENV=='prod'?'http://model.feiyanfly.com/#/resolution?data=liaoma':'http://modeldev.feiyanfly.com/#/resolution?data=liaoma'
        that.pageHeight = window.innerHeight || document.documentElement.clientHeight;
        window.onresize = () => {
            return (() => {
                that.pageHeight = window.innerHeight || document.documentElement.clientHeight; //实时高度
                
            })();
        };

    },
    mounted () {
    }
}
</script>
<style lang="scss" scoped>
.dataAnalyse{
    height: calc(100vh - 84px);
}
</style>